import { post } from './axios'

// 添加订单
export const addOrder = data => {
    return post('/order/add', data)
}

// 更新订单
export const updateOrder = data => {
    return post('/order/update', data)
}

// 编辑订单
export const editOrder = data => {
    return post('/order/edit', data)
}

// 删除订单
export const deleteOrder = data => {
    return post('/order/delete', data)
}

// 分页获取订单列表
export const listOrderByPage = data => {
    return post('/order/list/page', data)
}
